import http from "./request"

// 查询我的宿舍列表
export const getStuBedListApi = async (params) => {
    return await http.get("/api/stuBed/getStuBedList", params)
}

// 通过学生id查询对应班级下的学生列表
export const getStuListApi = async (params) => {
    return await http.get("/api/stuBed/getStuList", params)
}

// 保存调换提交信息
export const applySaveApi = async (params) => {
    return await http.post("/api/applyChange/applySave", params)
}

// 获取申请列表
export const getListApi = async (params) => {
    return await http.get("/api/applyChange/getList", params)
}

// 处理申请
export const applyDoApi = async (params) => {
    return await http.post("/api/applyChange/applyDo", params)
}

// 删除学生床位信息
export const deleteBedApi = async (params) => {
    return await http.delete("/api/stuBed", params)
}